package com.changgou.oauth.controller;

import com.changgou.entity.Result;
import com.changgou.user.feign.UserFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @ClassName LoginRedirect
 * @Description
 * @Author 洛尘
 * @Date 18:49 2019/11/24
 * @Version 2.1
 **/
@Controller
@RequestMapping("/oauth")
public class LoginRedirect {

    @Autowired
    private UserFeign userFeign;

    @RequestMapping("/login")
    public String login(@RequestParam(value = "from" ,required = false) String from , Model model){
        model.addAttribute("from",from);
        return "login";
    }

}
